package com.ruoyi.system.mapper.api.patient;

import com.ruoyi.system.domain.api.patient.GroupDto;
import com.ruoyi.system.domain.api.patient.PatientInfoDto;
import com.ruoyi.system.domain.api.patient.RelationDao;
import com.ruoyi.system.domain.api.patient.RelationshipDto;

import java.util.List;

public interface RelationshipApiMapper {
    /**
     * 新增患者和医生关系
     *
     * @author sergio
     * @date 2024/11/14
     */
    public Integer addRelationship(RelationshipDto relationshipDto);

    /**
     * 查询是否已经存在绑定关系
     *
     * @author sergio
     * @date 2024/11/14
     */
    public RelationDao selectRelationshipByDocAPatId(RelationDao relationDao);

    /**
     * 更新绑定关系
     *
     * @author sergio
     * @date 2024/11/14
     */
    public Integer updateRelationship(RelationshipDto relationshipDto);

    /**
     * 通过医生ID获取绑定关系的患者列表
     *
     * @author sergio
     * @date 2024/11/15
     */
    public List<PatientInfoDto> selectPatientInfoByDoctorId(RelationDao relationDao);

}
